home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
USGS: Oil & Gas Fields of Asia Pacific
/
USGS Maps Showing Geology, Oil & Gas Fields of Asia Pacific.iso
/
pc
/
ASPAC
/
VIEWS03
/
SCRIPTS
/
GEOLABEL.AVE
< prev
next >
Wrap
Text File
|
1999-01-17
|
2KB
|
52 lines
' geolabel.ave
' labels geology at scale > 1:10000000
' Douglas Steinshouer 11/14/98
' GeoLukas for USGS GEO CERT World Energy Project
' Defines the theme and clears existing labels
theView = av.GetActiveDoc
theTheme = theView.GetThemes.Get(4)
theTheme.SetActive(true)
theTheme.GetGraphics.SelectLabels
theTheme.GetGraphics.Invalidate
theView.GetGraphics.ClearSelected
' Determines scale of zoomed view
size = theView.GetDisplay.ReturnVisExtent
tall = size.GetHeight
long = size.GetWidth
' Filters scale and draws labels
if ((tall < 889000) AND (long < 1227670)) then
agelabel = Labeler.Make(size)
agelabel.SetFeatureWeight(#LABEL_WEIGHT_NO)
agelabel.SetLabelWeight(#LABEL_WEIGHT_HIGH)
agesymbol = TextSymbol.Make
agesymbol.SetFont(Font.Make("Arial","Normal"))
if ((tall < 44450) AND (long < 61383)) then
agesymbol.SetSize(15)
elseif ((tall < 88900) AND (long < 122767)) then
agesymbol.SetSize(12)
elseif ((tall < 222250) AND (long < 306917)) then
agesymbol.SetSize(10)
elseif ((tall < 444500) AND (long < 613835)) then
agesymbol.SetSize(7)
elseif ((tall < 666751) AND (long < 920752)) then
agesymbol.SetSize(5)
else
agesymbol.SetSize(4)
end
theTheme.SetLabelTextSym(agesymbol)
agelabel.Load(theTheme)
theView.GetAutoLabels(agelabel,true)
else
theTheme.GetGraphics.SelectLabels
theTheme.GetGraphics.Invalidate
theView.GetGraphics.ClearSelected
end
end